package cn.smbms.service.user;

import cn.smbms.dao.provider.ProviderMapper;
import cn.smbms.dao.user.UserMapper;
import cn.smbms.pojo.Provide;
import cn.smbms.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service("userService")
public class UserServiceImpl implements UserService {

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public UserMapper getUserMapper(){return userMapper;}

    @Autowired
    private UserMapper userMapper;

    @Override
    public int update(User user) {
        return userMapper.update(user);
    }

    @Override
    public int del(User user) {
        return userMapper.del(user);
    }

    @Override
    public int uppwd(User user) {
        return userMapper.uppwd(user);
    }
}
